<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: black;
            position: absolute;
            left: 0px;
            animation: 2s xxx linear;
        }

        @keyframes xxx {
            from {
                left: 0px;
            }

            to {
                left: 1000px;
            }
        }
    </style>
</head>

<body>
</body>
<!-- <input type="text" class="inin">
<input type="checkbox" name="" id="check"> -->
<div></div>
<script>
    //失去焦点且表单改变时触发
    // var getin = document.querySelector(".inin")
    // getin.onchange = function () {
    //     console.log("变变变")
    // }
    //输入的时候改变
    // getin.oninput = function () {
    //     console.log("变变变呀")
    // }
    //聚焦的时候触发
    // getin.onfocus = function () {
    //     console.log("变变变啊")
    // }
    //失去焦点的时候触发
    // getin.onblur = function () {
    //     console.log("变变变哇")
    // }
    // document.ontouchstart = function () {
    //     console.log("开始摸")
    // }
    // document.ontouchmove = function () {
    //     console.log("正在摸")
    // }
    // document.ontouchend = function () {
    //     console.log("摸完了")
    // }
    var box = document.querySelector("div")
    box.onanimationend = function () {
        console.log("看啥呢臭弟弟？")
    }

</script>

</html>